package com.jfinal.ext.groovy;

import com.jfinal.config.JFinalConfig;
import com.jfinal.ext.exception.NotFinishedException;
import com.jfinal.plugin.IPlugin;

public class GroovyPlugin implements IPlugin{
    private JFinalConfig config;

    public Object compile(){
        System.out.println(config.getClass().getClassLoader().getResource(".").getPath());
        return null;
    }

    @Override
    public boolean start() {
        compile();
        try {
            throw new NotFinishedException();
        } catch (NotFinishedException e) {
            e.printStackTrace();
        }
        return true;
    }

    @Override
    public boolean stop() {
        return false;
    }
}
